#!/bin/sh

echo "deploy start"

cd /Users/linyangping/Desktop/campusshare

echo "mvn clean ..."

mvn clean

echo "mvn install ..."

mvn install -P dev

echo "stop remote server ..."

ssh gandao1 "sh /home/campusshare/stop.sh"

echo "upload to server ..."

scp /Users/linyangping/Desktop/campusshare/target/campusshare.jar gandao1:/home/campusshare/

echo "start remote server ..."

ssh gandao1 "cd /home/campusshare ; sh start.sh"

echo "deploy end"


